import http from '../network/http'

export default {
  //获取讲师列表
  getTeacherList(){
    return http({
      url: '/xiyun/service/teacher/getTeacherList',
      method: 'get'
    })
  },
  //根据条件分页查询获取讲师列表
  getTeacherQuery(current,limit,teacherQuery){
    return http({
      url: `/xiyun/service/teacher/queryTeacher/${current}/${limit}`,
      method: 'post',
      data: teacherQuery
    })
  },
  deleteTeacherId(id) {
    return http({
      url: `/xiyun/service/teacher/deleteTeacher/${id}`,
      method: 'get'
    })
  },
  addTeacher(teacher){
    return http({
      url: `/xiyun/service/teacher/addTeacher`,
      method: 'post',
      data: teacher
    })
  },
  downloadExcel(){
    return http({
      url: '/xiyun/service/department/downloadexcel',
      method: 'get'
    })
  }
}
